package com.itheima.a13waitandnotify;

public class ThreadDemo {

    /**
     * 生产者和消费者问题
     *      实现线程轮流交替执行
     * @param args
     */
    public static void main(String[] args) {
        Cook cook = new Cook();
        Foodie foodie = new Foodie();

        cook.setName("厨师");
        foodie.setName("吃货");

        cook.start();
        foodie.start();

    }
}
